﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace Aspfm.Print
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            //Application.EnableVisualStyles();
            //Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new Form1());

            //List<ApsfmXmlSource> list = new List<ApsfmXmlSource>();
            //ApsfmXmlSource xml = new ApsfmXmlSource();
            //xml.connkey = "1";
            //xml.datakey = "2";
            //xml.datatable = 3;
            //xml.foreachrow = 4;
            //xml.sqlcmd = "5";
            //xml.sqltype = "6";
            //list.Add(xml);

            //ApsfmXmlSource xml1 = new ApsfmXmlSource();
            //xml1.connkey = "1";
            //xml1.datakey = "2";
            //xml1.datatable = 3;
            //xml1.foreachrow = 4;
            //xml1.sqlcmd = "5";
            //xml1.sqltype = "6";
            //list.Add(xml1);


            //AspfmXml aspfmxml = new AspfmXml();
            //aspfmxml.xmlSourceList = list;
            //Aspfm.Main.SerializeHelper.Save(aspfmxml, @"d:\\1.xml");


            AspfmXml list = AspfmXml.GetConfig("d:\\1.xml");
            int i = list.xmlSourceList.Count;
        }
    }
}
